// Copyright (C) 2005 Taylor L. Riché <riche@cs.utexas.edu>
//  
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software 
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// 	$Id: Context.hh 168 2005-08-15 16:50:15Z richetl $	
//

#ifndef CONTEXT_HH
#define CONTEXT_HH

#include <assert.h>
#include <map>
#include <pthread.h>
#include <typeinfo>

#ifdef LEE_DEBUG
#include <iostream>
#endif

#ifdef LEE_BUILD
#include "CourierUnit.hh"
#include "Event.hh"
#include "Subscription.hh"
#else
#include <lee/CourierUnit.hh>
#include <lee/Event.hh>
#include <lee/Subscription.hh>
#endif

// This class exists to do one thing... provide a way to have state
// saved for each thread independently.

namespace lee {
  struct Context
  {
    void save(Event * ev, Subscription * sub);
    bool isCU(Subscription * sub);
  };
}

#endif // CONTEXT_HH

